home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / t_os / io5 / io5text.c < prev    next >
C/C++ Source or Header  |  1993-11-30  |  3KB  |  129 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    resultdialog ;
  9. extern int    textid ;
  10. extern int    resulttitle ;
  11. extern int    Message_00d8 ;
  12. extern int    DButton_00da ;
  13. extern int    procfunc() ;
  14. extern int    button ;
  15.  
  16. #define ALIGN    4
  17. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  18.  
  19. /*    MMI_init 用データ    */
  20.  
  21. /*    ヘッダ    */
  22.  
  23. MMIINIT    initDataIO5TEXT = { "MmiInit",   6, 0 } ;
  24.  
  25. /* resultdialog */
  26.  
  27. static MMIPACKET d001 = {    &resultdialog,
  28.                             NULL,
  29.                             &MJ_DIALOGL40,
  30.                             OFFSET(DIALOGL40),
  31.                             MS_NONE
  32.                         } ;
  33. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  34.                              214, 149, 476, 308, 0, 7, 0,
  35.                             MS_PANELL40 | MS_FRAMEL40,
  36.                             NULL,   0,   0
  37.                         } ;
  38.  
  39. /* textid */
  40.  
  41. static MMIPACKET d002 = {    &textid,
  42.                             &resultdialog,
  43.                             &MJ_TEXTL40,
  44.                             OFFSET(TEXTL40),
  45.                             MS_NONE
  46.                         } ;
  47. static TEXTL40    d002d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
  48.                              322, 215, 375, 238, 0, 7,14,
  49.                             MS_DFRAMEL40 | MS_FRAMEL40,
  50.                             0,
  51.                                0,   0,   0,   0,
  52.                                0,   0,   0,   0,   0,
  53.                                    3,   0,   0,
  54.                                0,   0,   0,   0,
  55.                                0,
  56.                                0,   0,   0,   0,
  57.                                1,  12,  12,   1,   0,
  58.                                0,   0,   0,   0,   0,   0,   0,
  59.                                0,   0,   0,   0,
  60.                               24
  61.                         } ;
  62.  
  63. /* resulttitle */
  64.  
  65. static MMIPACKET d003 = {    &resulttitle,
  66.                             &resultdialog,
  67.                             &MJ_MSGL40,
  68.                             OFFSET(MSGL40),
  69.                             MS_NONE
  70.                         } ;
  71. static MSGL40    d003d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  72.                              270, 169, 429, 192, 0, 7,14,
  73.                             MS_NONEL40,
  74.                             "あなたの考えた数字は",
  75.                                1,  12,  12,
  76.                             MS_NONEL40,
  77.                                0,   0
  78.                         } ;
  79.  
  80. /* Message_00d8 */
  81.  
  82. static MMIPACKET d004 = {    &Message_00d8,
  83.                             &resultdialog,
  84.                             &MJ_MSGL40,
  85.                             OFFSET(MSGL40),
  86.                             MS_NONE
  87.                         } ;
  88. static MSGL40    d004d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  89.                              380, 214, 440, 237, 0, 7,14,
  90.                             MS_NONEL40,
  91.                             "ですね。",
  92.                                1,  12,  12,
  93.                             MS_NONEL40,
  94.                                0,   0
  95.                         } ;
  96.  
  97. /* DButton_00da */
  98.  
  99. static MMIPACKET d005 = {    &DButton_00da,
  100.                             &resultdialog,
  101.                             &MJ_DBUTTONL40,
  102.                             OFFSET(DBUTTONL40),
  103.                             MS_NONE
  104.                         } ;
  105. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  106.                              315, 262, 384, 287,12, 7, 0,
  107.                             MS_PANELL40 | MS_FRAMEL40,
  108.                             procfunc,
  109.                             0x0000
  110.                         } ;
  111.  
  112. /* button */
  113.  
  114. static MMIPACKET d006 = {    &button,
  115.                             &resultdialog,
  116.                             &MJ_MSGL40,
  117.                             OFFSET(MSGL40),
  118.                             MS_NONE
  119.                         } ;
  120. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  121.                              326, 263, 372, 286, 0, 7,14,
  122.                             MS_NONEL40,
  123.                             "確認",
  124.                                1,  12,  12,
  125.                             MS_NONEL40,
  126.                                0,   0
  127.                         } ;
  128.  
  129.